package common;

/**
 * Clase personalizada para capturar excepciones
 *
 * @author grupo Programari.cat
 */
public class EOlympicsException extends Exception {

private static final long serialVersionUID = 1L;

    /**
     * Constructor sin parámetros. Delega en la superclase.
     */
    public EOlympicsException() {
        super();
    }

    /**
     * Constructor con un parámetro.
     * @param msg  Mensaje que tiene que mostrar la excepción.
     * Busca el texto del mensaje en el fichero de idiomas con el código del error.
     */
    public EOlympicsException(String msg) {
        super(msg);
        System.out.println(msg);
    }



    private static java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("common/i18n/errorMessages"); // NOI18N
    public static final String ERR_URL = bundle.getString("ERR_URL");
    public static final String ERR_REMOTO = bundle.getString("ERR_REMOTO");
    public static final String ERR_REG_RMI = bundle.getString("ERR_REG_RMI");
    public static final String ERR_NOT_FILE = bundle.getString("ERR_NOT_FILE");
    public static final String ERR_NOT_BOUND = bundle.getString("ERR_NOT_BOUND");
    public static final String ERR_NOT_POSTGRES = bundle.getString("ERR_NOT_POSTGRES");
    public static final String ERR_PROPERTIES = bundle.getString("ERR_PROPERTIES");
    public static final String ERR_CONECTION = bundle.getString("ERR_CONECTION");
    public static final String ERR_SQL = bundle.getString("ERR_SQL");
    public static final String ERR_BD_STOP = bundle.getString("ERR_BD_STOP");
    public static final String ERR_DRV = bundle.getString("ERR_DRV");
    public static final String ERR_NOT_EST = bundle.getString("ERR_NOT_EST");
    public static final String ERR_NOT_DATE = bundle.getString("ERR_NOT_DATE");
    public static final String ERR_INSERT = bundle.getString("ERR_INSERT");
    public static final String ERR_PARSE = bundle.getString("ERR_PARSE");
    public static final String ERR_OBJ_RMI = bundle.getString("ERR_OBJ_RMI");
    public static final String ERR_DESC_EXEC = bundle.getString("ERR_DESC_EXEC");
    public static final String ERR_NO_COD = bundle.getString("ERR_NO_COD");
    public static final String ERR_DESC = bundle.getString("ERR_DESC");
    public static final String ERR_STATEMENT = bundle.getString("ERR_STATEMENT");
    public static final String ERR_DESC_STAT = bundle.getString("ERR_DESC_STAT");
    public static final String ERR_NOT_ACT = bundle.getString("ERR_NOT_ACT");
    public static final String ERR_INSC_NOEXIST = bundle.getString("ERR_INSC_NOEXIST");
    public static final String ERR_INSC_SOLAPE = bundle.getString("ERR_INSC_SOLAPE");
    public static final String ERR_INSC_MAS3 = bundle.getString("ERR_INSC_MAS3");
    public static final String ERR_INSC_LLENO = bundle.getString("ERR_INSC_LLENO");
    public static final String ERR_INSC_COMEN = bundle.getString("ERR_INSC_COMEN");
    public static final String ERR_INSC_FIN = bundle.getString("ERR_INSC_FIN");
    public static final String ERR_SELEC_EST = bundle.getString("ERR_SELEC_EST");
    public static final String ERR_SELEC_ACT = bundle.getString("ERR_SELEC_ACT");
    public static final String ERR_ARIT = bundle.getString("ERR_ARIT");
    public static final String ERR_INSC_EXIS = bundle.getString("ERR_INSC_EXIS");
}
